package com.woniuxy.controller;

import com.woniuxy.ResponseEntity.ResponseEntity;
import com.woniuxy.entity.Rbacmanager;
import com.woniuxy.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class Login {
    @Autowired
    LoginService loginService;

    @PostMapping("/login")
    public ResponseEntity login(@RequestBody Rbacmanager rbacmanager){
        ResponseEntity response=loginService.login(rbacmanager);
        return response;
    }
}
